package org.neuedu.chapter07_0623.demo09;

public class Test {
    public static void main(String[] args) {
        TrainStation ts = new TrainStation();

        Student student = new Student();
        Teacher teacher = new Teacher();
        Worker worker = new Worker();
        Soldier soldier = new Soldier();

        ts.saleTicket(student);
        ts.saleTicket(teacher);
        ts.saleTicket(worker);
        ts.saleTicket(soldier);
    }
}
